<div class="relativestypes view">
<h2><?php  __('Relativestype');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $relativestype['Relativestype']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $relativestype['Relativestype']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Relativestype', true), array('action' => 'edit', $relativestype['Relativestype']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Relativestype', true), array('action' => 'delete', $relativestype['Relativestype']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $relativestype['Relativestype']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Relativestypes', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Relativestype', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Relatives', true), array('controller' => 'relatives', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Relative', true), array('controller' => 'relatives', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Relatives');?></h3>
	<?php if (!empty($relativestype['Relative'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Relativestype Id'); ?></th>
		<th><?php __('Student Id'); ?></th>
		<th><?php __('Passport Data'); ?></th>
		<th><?php __('Fio'); ?></th>
		<th><?php __('Job'); ?></th>
		<th><?php __('Jobstatus'); ?></th>
		<th><?php __('Phone'); ?></th>
		<th><?php __('Mobile'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Adress'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($relativestype['Relative'] as $relative):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $relative['id'];?></td>
			<td><?php echo $relative['relativestype_id'];?></td>
			<td><?php echo $relative['student_id'];?></td>
			<td><?php echo $relative['passport_data'];?></td>
			<td><?php echo $relative['fio'];?></td>
			<td><?php echo $relative['job'];?></td>
			<td><?php echo $relative['jobstatus'];?></td>
			<td><?php echo $relative['phone'];?></td>
			<td><?php echo $relative['mobile'];?></td>
			<td><?php echo $relative['email'];?></td>
			<td><?php echo $relative['adress'];?></td>
			<td><?php echo $relative['created'];?></td>
			<td><?php echo $relative['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'relatives', 'action' => 'view', $relative['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'relatives', 'action' => 'edit', $relative['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'relatives', 'action' => 'delete', $relative['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $relative['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Relative', true), array('controller' => 'relatives', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
